﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.BL.DataAccess;
using FazaDemo.Data;

namespace FazaDemo.BL.Services_
{
    class NavEcqFormatProvider
    {

        private readonly TsSysEcqRepository _repository;

        public NavEcqFormatProvider()
        {
            _repository = new TsSysEcqRepository(new EntityRepository<TS_SYS_ECQ, int>());
        }

        public string GetEcqText(int numEcq)
        {
            var ecq = _repository.GetEcqById(numEcq);
            return ecq.ECQ;
        }

    }
}
